<template>
  <div class="action-button animate" :style="{
      backgroundColor:color,
      borderBottom: '5px solid '+shadowColor
    }"
    @click="click"
  >
    <slot>{{ info }}</slot>
  </div>
</template>

<script>

export default {
  name: "GoButton",
  props: {
    info: {
      type: String,
      default: 'click me'
    },
    color: {
      type: String,
      default: 'rgb(242, 207, 102)'
    },
    shadowColor: {
      type: String,
      default: 'rgb(204, 179, 102)'
    }
  },
  computed: {},
  methods: {
    click() {
      this.$emit('click');
    }
  }
}
</script>

<style>

.animate {
  transition: all 0.1s;
  -webkit-transition: all 0.1s;
}

.action-button {
  display: inline-block;
  line-height: 19px;
  height: 38px;
  vertical-align: middle;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: ZCOOL,serif;
  font-size: 15px;
  text-align: center;
  color: #1a1717;
  text-decoration: none;
  margin-bottom: 5px;
}

.action-button:active {
  transform: translate(0px, 5px);
  -webkit-transform: translate(0px, 5px);
  border-bottom: 1px solid;
}
</style>